package MultiChat;

import java.io.BufferedReader;


public class ChatClientServerReaderThread implements Runnable {
	private ChatClient chatClient = null;
	private BufferedReader reader = null;

	ChatClientServerReaderThread(ChatClient chatClient, BufferedReader reader) {
		this.chatClient = chatClient;
		this.reader = reader;
	}
	
	@Override
	public void run() {
		while (true) {
			chatClient.show(new Message(reader));
		}
	}

}
